#!/bin/bash
# 2022 kali

if [ $UID -ne 0 ]; then
 echo Non root user. Please run as root.
 exit
fi

cp /etc/apt/sources.list /etc/apt/old_sources.list
touch /etc/apt/sources.list
echo "deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib\ndeb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib" > /etc/apt/sources.list
apt update && apt upgrade
mkdir tmp && cd tmp
apt install git zsh ibus ibus-rime
